package org.example.reggie;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//(exclude= {DataSourceAutoConfiguration.class})
@SpringBootApplication
//@MapperScan(value = "org.example.reggie.mapper")
@ServletComponentScan // 使@WebServlet、@WebFilter、@WebListener 注解的类，生效
@EnableTransactionManagement // 开启事务管理
@EnableCaching //开启注解方式spring-cache缓存
public class ReggieMainApplication {
    public static void main(String[] args) {
        SpringApplication.run(ReggieMainApplication.class,args);
    }
}
